<template>
  <div class="footer">
    <el-row :gutter="20">
      <el-col :span="6">
        <div>当前系统时间 : {{times}}</div>
      </el-col>
      <el-col :span="6" :offset="12">
        <div class="">{{msg}}</div>
      </el-col>
    </el-row>
  </div>
</template>

<script type="text/ecmascript-6">
  export default{
    data () {
      return {
        msg: '自动化测试平台 v1.0'
      }
    },
    computed: {
      times () {
        return `${new Date().getFullYear()}年${new Date().getMonth() + 1}月${new Date().getDate()}日`
      }
    }
  }
</script>

<style lang="css" scoped>
  .footer {
    width: 100%;
    height: 40px;
    position: absolute;
    left: 0;
    bottom: 0;
    border: 1px #ccc solid;
    border-left: 0;
    border-right: 0;
    background: #fff;
    z-index: 2;
  }

  div {
    text-align: center;
    line-height: 40px;
  }

</style>
